import {PureComponent} from "react";
import {WithRouter} from "../hoc";

class User extends PureComponent {
    render() {
        const {router: {query}} = this.props;
        return (
            <div>
                <h2>user用户页面</h2>
                <div>user: {query.name}-{query.age}</div>
            </div>
        )
    }
}

export default WithRouter(User)